package com.ff.xyh.access.controller.post;

import com.ff.xyh.access.service.post.PostReplyFeignService;
import com.ff.xyh.common.entity.result.ResultObject;
import com.ff.xyh.common.qo.post.PostReplyQuery;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Auther FF
 * @Date 2023年 05月 24日
 * @Time 12:19
 */

@Api(tags = "帖子回复信息管理接口")
@RestController
@RequestMapping("/access/post/reply")
public class PostReplyController {

    @Autowired
    private PostReplyFeignService service;

    @ApiOperation(value = "条件查询帖子回复信息列表")
    @PostMapping("get")
    ResultObject getPostReplyCondition(
            @RequestBody PostReplyQuery postReplyQuery) {
        return service.getPostReplyCondition(postReplyQuery);
    }
    @ApiOperation(value = "删除帖子回复信息")
    @PostMapping("delete")
    ResultObject deletePostReply(
            @RequestParam("replyId") String replyId) {
        return service.deletePostReply(replyId);
    }

}
